package com.freesky.common.dao.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.freesky.common.dao.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author: 陈玉林
 * @modifiedBy:
 * @date: Create In 8:55 2018/12/5
 * @description:
 */
@Mapper
public interface UserMapper extends BaseMapper<User>{
    Set<String> getRoles(@Param("username") String username);
    Set<String> getPermissions(@Param("username") String username);
    List<String> getPermsByRoleId(@Param("id") int id);
}
